﻿<Window x:Class="PrestoDashboard.Windows.TaskDosCommandView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize"
        Background="#FF595959"
        Height="270" Width="510"
        Title="TaskDosCommandView">
    <Grid Margin="5" HorizontalAlignment="Center">
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" Height="25" Grid.Row="0">
            <Label Style="{StaticResource StandardLabel}" Content="*Description:" Width="130" />
            <TextBox x:Name="txtDescription" Text="{Binding TaskDosCommandCopy.Description}" Width="340"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Height="25" Grid.Row="1">
            <Label Style="{StaticResource StandardLabel}" Content="*Executable:" Width="130" />
            <TextBox x:Name="txtExecutable" Text="{Binding TaskDosCommandCopy.DosExecutable}" Width="340"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Height="25" Grid.Row="2">
            <Label Style="{StaticResource StandardLabel}" Content="*Parameters:" Width="130" />
            <TextBox x:Name="txtParameters" Text="{Binding TaskDosCommandCopy.Parameters}" Width="340"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Height="25" Grid.Row="3">
            <Label Style="{StaticResource StandardLabel}" Content="*Pause (0-120 seconds):" Width="130" />
            <TextBox x:Name="txtPause" Text="{Binding TaskDosCommandCopy.AfterTaskPauseInSeconds}" Width="340"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Height="25" Grid.Row="4">
            <Label Style="{StaticResource StandardLabel}" Content="Run as user:" Width="130" />
            <TextBox x:Name="txtUser" Text="{Binding TaskDosCommandCopy.RunAsUser}" Width="340"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Height="25" Grid.Row="5">
            <Label Style="{StaticResource StandardLabel}" Content="Run as password:" Width="130" />
            <TextBox x:Name="txtPassword" Text="{Binding TaskDosCommandCopy.RunAsPassword}" Width="340"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Height="25" Grid.Row="6">
            <Label Style="{StaticResource StandardLabel}" Content="FailureCausesAllStop:" Width="130" />
            <CheckBox x:Name="chkFailureCausesAllStop" IsChecked="{Binding TaskDosCommandCopy.FailureCausesAllStop}" VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Grid.Row="7" HorizontalAlignment="Center" Height="35">
            <Button Command="{Binding OkCommand}" Style="{StaticResource StandardButton}" Content="OK" Margin="5" />
            <Button Command="{Binding CancelCommand}" Style="{StaticResource StandardButton}" Content="Cancel" Margin="5" />
        </StackPanel>
    </Grid>
</Window>
